const path = require('path');
const webpack = require('webpack');

const dllPath = '../public/vendor'

module.exports = {
  entry: {
    jquery: ['jquery'],
    vue: ['vue', 'vuex']
  },
  output: {
    filename: '[name].dll.js',
    path: path.resolve(__dirname, dllPath),
    library: '[name]_[hash]'
  },
  plugins: [
    new webpack.DllPlugin({
      name: '[name]_[hash]',
      path: path.resolve(__dirname, dllPath, '[name].manifest.json')
    })
  ],
  mode: 'production'
}